package com.ptu.server;

import com.ptu.dto.OrderDTO;
import com.ptu.entity.Order;
import com.ptu.entity.OrderItem;
import com.ptu.util.PageResult;
import com.ptu.vo.OrderVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderServer {
    Order addOrder(OrderDTO orderDTO);

    List<OrderVO> list();

    Order detail(Long id);

    void pay(Long id);

    void cancel(Long id);

    void confirm(Long id);

    void returnGoods(Long id);

    void deliver(Long id);

    PageResult getOrderList(Integer status, String paymentMethod, Integer pageNum, Integer pageSize);

    Order adminDetail(Long id);

    void comment(Long id);

    //管理员确认退货
    void returnOkGoods(Long id);

    List<OrderVO> allList();

    void payByOrderNo(String orderNo);
}
